import service from '@/utils/request'
// @Tags IntegralRecords
// @Summary 创建integralRecords表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.IntegralRecords true "创建integralRecords表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /integralRecords/createIntegralRecords [post]
export const createIntegralRecords = (data) => {
  return service({
    url: '/integralRecords/createIntegralRecords',
    method: 'post',
    data
  })
}

// @Tags IntegralRecords
// @Summary 删除integralRecords表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.IntegralRecords true "删除integralRecords表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /integralRecords/deleteIntegralRecords [delete]
export const deleteIntegralRecords = (params) => {
  return service({
    url: '/integralRecords/deleteIntegralRecords',
    method: 'delete',
    params
  })
}

// @Tags IntegralRecords
// @Summary 批量删除integralRecords表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除integralRecords表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /integralRecords/deleteIntegralRecords [delete]
export const deleteIntegralRecordsByIds = (params) => {
  return service({
    url: '/integralRecords/deleteIntegralRecordsByIds',
    method: 'delete',
    params
  })
}

// @Tags IntegralRecords
// @Summary 更新integralRecords表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.IntegralRecords true "更新integralRecords表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /integralRecords/updateIntegralRecords [put]
export const updateIntegralRecords = (data) => {
  return service({
    url: '/integralRecords/updateIntegralRecords',
    method: 'put',
    data
  })
}

// @Tags IntegralRecords
// @Summary 用id查询integralRecords表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.IntegralRecords true "用id查询integralRecords表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /integralRecords/findIntegralRecords [get]
export const findIntegralRecords = (params) => {
  return service({
    url: '/integralRecords/findIntegralRecords',
    method: 'get',
    params
  })
}

// @Tags IntegralRecords
// @Summary 分页获取integralRecords表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取integralRecords表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /integralRecords/getIntegralRecordsList [get]
export const getIntegralRecordsList = (params) => {
  return service({
    url: '/integralRecords/getIntegralRecordsList',
    method: 'get',
    params
  })
}

// @Tags IntegralRecords
// @Summary 不需要鉴权的integralRecords表接口
// @accept application/json
// @Produce application/json
// @Param data query integral_recordReq.IntegralRecordsSearch true "分页获取integralRecords表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /integralRecords/getIntegralRecordsPublic [get]
export const getIntegralRecordsPublic = () => {
  return service({
    url: '/integralRecords/getIntegralRecordsPublic',
    method: 'get',
  })
}
